package com.example.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;
import com.example.common.Vo.*;
import com.example.entity.Objective;

import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author ptuDai
 * @since 2022-04-19
 */
public interface IObjectiveService extends IService<Objective> {

    IPage<ObjectiveVO> selectPage(IPage<ObjectiveVO> pageObjectiveVO, ObjectiveQuery objectiveQuery);

    List<Objective> parentObjectList(Integer type);

    List<Reviewer> reviewerList(Integer type);

    void add(Integer type, EditObjectiveVO editObjectiveVO);

    void review(Objective objective);

    void changeStatus(Integer id,Integer status);

    List<TreeObjectiveVO> tree();
}
